package order.controller;


import order.service.OrderItemService;
import order.vo.trade.TradeVo;
import com.feign.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * 订单项信息(OrderItem)表控制层
 *
 * @author panghu
 * @since 2023-03-04 21:08:16
 */
@RestController
@RequestMapping("order/orderItem")
public class OrderItemController {

    @Autowired
    private OrderItemService orderItemService;

    /**
     * 获取订单交易页信息
     *
     * @return
     */
    @GetMapping("trade")
    public R getTrad(HttpServletRequest request) {
        TradeVo tradeVo = orderItemService.findOrderTrade(request);
        return R.ok().setData(tradeVo);
    }

}

